package com.six.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.six.mapper.MenuMapper;
import com.six.pojo.Menu;
import com.six.service.MenuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
@Slf4j
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    @Override
    public List<Menu> findPermissionByAdminUsername(String username) {
        return baseMapper.findPermissionByAdminUsername(username);
    }
}
